package com.powerunion.datacollection.common;

/**
 * 系统异常类 
 * @author qyw
 *
 */
public class SystemException extends RuntimeException {

	private String key;
	private Object[] values;
	
	public SystemException() {
		super();
	}

	public SystemException(String message, Throwable arg1) {
		super(message, arg1);
	}

	public SystemException(String message) {
		super(message);
	}

	public SystemException(Throwable message) {
		super(message);
	}

	public SystemException(String key,String message, Throwable arg1) {
		super(message, arg1);
		this.key = key;
	}

	public SystemException(String key,Object value) {
		super();
		this.key = key;
		values = new Object[]{value};
	}
	
	public SystemException(String key,Object value1,Object value2) {
		super();
		this.key = key;
		values = new Object[]{value1,value2};
	}
	
	public SystemException(String key,Object[] values) {
		super();
		this.key = key;
		this.values = values;
	}

	public String getKey() {
		return key;
	}

	public Object[] getValues() {
		return values;
	}

}
